#
#  OSPFv2 test suite Makefile
#

#----------------------------------------------------------- SETUP

VERSION = 0.2.1
TOPDIR = ../../../../../../../..
include $(TOPDIR)/Makefile.common

JAVAC = javac -classpath $(SSFNET_TEST_CLASSPATH)
JAVA  = java  -classpath $(SSFNET_TEST_CLASSPATH)

# This is for the cygwin environment which has trouble with the mix of
# slashes and backslashes... Take care, that the classpath is set correctly!
ifeq ($(OSTYPE), cygwin)
JAVAC = javac
JAVA  = java
endif

SHARED=../../shared

TESTCASE=virtual
SIMTIME=100
DUMP_AT1=router2
REPORT=report.log

DML=$(TESTCASE).dml
LOG=$(TESTCASE).log
EVAL=$(TESTCASE).pl
TCPDUMP1=$(DUMP_AT1).tcpdump
DUMP1=$(DUMP_AT1).dump


#----------------------------------------------------------- MAKE test
test:
	@echo Test case $(TESTCASE).
	@echo --- Simulating scenario.
#	$(JAVA) SSF.Net.Net $(SIMTIME) $(TOPDIR)/examples/net.dml $(SHARED)/testsuite.dml $(DML) > $(LOG) 2>&1
	@echo Virtual links are not supported - no simulation!
#	@echo --- Converting binary tcpdump.
#	$(JAVA) SSF.OS.OSPFv2.test.OSPFDumpPro $(TCPDUMP1) > $(DUMP)
	@echo --- Evalating results.
#	./$(EVAL) $(DUMP1) $(LOG) > $(REPORT)
	@echo "Virtual links are not supported yet." > $(REPORT)
	@echo "### VERDICT for $(TESTCASE): INCONCLUSIVE ###" >> $(REPORT)
	@cat $(REPORT)
	
#----------------------------------------------------------- MAKE clean
clean:
	rm -f *.log *.tcpdump *.dump *.bak *~